/*
vuex最核心的管理对象: store
 */

import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import mutations from './mutations'
import actions from './actions'
import getters from './getters'

import home from './modules/home'
import categoryList from './modules/categoryList'
import topic from './modules/topic'

export default new Vuex.Store({
  mutations,
  actions,
  getters,
  modules: {
    home,
    categoryList,
    topic,
  }
})
